#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
#define MAXN 10002
int father[MAXN];


void build(int n) {
	for (int i = 0; i <= n; ++i)
		father[i] = i;
}

int Find(int x) {
	if (x != father[x]) {
		return father[x] = Find(father[x]);
	}
	return x;
}

bool isSame(int x, int y) {
	return Find(x) == Find(y);
}

void Union(int x, int y) {
	int fx = Find(x);
	int fy = Find(y);
	if (fx != fy) {
		father[fx] = fy;
	}
}

int main() {
	int n;
	cin >> n;
	build(n);
	
	return 0;
}
